package com.ruoyi.mall.service;

import com.ruoyi.mall.domain.CustomerLevel;
import com.ruoyi.mall.domain.vo.CustomerLevelVo;
import com.ruoyi.mall.domain.bo.CustomerLevelBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 会员等级Service接口
 *
 * @author ruoyi
 * @date 2024-04-24
 */
public interface ICustomerLevelService {

    /**
     * 查询会员等级
     */
    CustomerLevelVo queryById(Long customerLevelId);

    /**
     * 查询会员等级列表
     */
    TableDataInfo<CustomerLevelVo> queryPageList(CustomerLevelBo bo, PageQuery pageQuery);

    /**
     * 查询会员等级列表
     */
    List<CustomerLevelVo> queryList(CustomerLevelBo bo);

    /**
     * 新增会员等级
     */
    Boolean insertByBo(CustomerLevelBo bo);

    /**
     * 修改会员等级
     */
    Boolean updateByBo(CustomerLevelBo bo);

    /**
     * 校验并批量删除会员等级信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
